<template>
  <tab-bar>
    <tab-bar-item path="/home" active-color="red">
      <img slot="item-icon" src="../assets/img/tabBar/home.svg" alt="">
      <img slot="item-icon-active" src="../assets/img/tabBar/home_active.svg" alt="">
      <div slot="item-text">首页</div>
    </tab-bar-item>
    <tab-bar-item path="/category" active-color="green">
      <img slot="item-icon" src="../assets/img/tabBar/category.svg" alt="">
      <img slot="item-icon-active" src="../assets/img/tabBar/category_active.svg" alt="">
      <div slot="item-text">分类</div>
    </tab-bar-item>
    <tab-bar-item path="/cart" active-color="blue">
      <img slot="item-icon" src="../assets/img/tabBar/cart.svg" alt="">
      <img slot="item-icon-active" src="../assets/img/tabBar/cart_active.svg" alt="">
      <div slot="item-text">购物车</div>
    </tab-bar-item>
    <tab-bar-item path="/profile" active-color="pink">
      <img slot="item-icon" src="../assets/img/tabBar/profile.svg" alt="">
      <img slot="item-icon-active" src="../assets/img/tabBar/profile_active.svg" alt="">
      <div slot="item-text">我的</div>
    </tab-bar-item>
  </tab-bar>
</template>

<script>
import TabBar from "./tabBar/TabBar";
import TabBarItem from "./tabBar/TabBarItem"

export default {
  name: "MainTabBar",
  components: {
    TabBar,
    TabBarItem
  }
}
</script>

<style scoped>

</style>
